package com.wanlian.netty.File.msg.up;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.File.msg.FileBaseMsg;
import com.wanlian.netty.model.ResultInfo;
import com.wanlian.netty.msg.MsgType;

/**
 * 上传确认
 */
public class FilePeerUpRspMsg extends FileBaseMsg {
    private ResultInfo resultInfo;

    public FilePeerUpRspMsg() {
        this.setType(MsgType.DEVICE_FILE_UPLOAD_RSP);
        this.resultInfo=new ResultInfo(true);
    }

    public ResultInfo getResultInfo() {
        return resultInfo;
    }

    public void setResultInfo(ResultInfo resultInfo) {
        this.resultInfo = resultInfo;
        this.setContent(JsonStringUtil.writeValueAsString(resultInfo));
    }
}
